<?php
/**
 * 详情
 *
 * @url
 */

    $chefid = intval($_GPC['chefid']);
    $_W['isajax'] = 1;
    //$chefid = 2;
    $day = date("Y-m-d");
    $pq = pdo_fetchall("SELECT sdate FROM ".tablename('shopping3_schedule')." WHERE  chefid = {$chefid} and sdate>= '".$day."' and orderid=0 order by sdate asc" );



	if (empty($pq)) {
		message('抱歉，最近档期已满！',"","error");
	}

    foreach($pq as $val)
    {
        $rdata[] = $val['sdate'];
    }

	echo json_encode($rdata);
	exit;

?>
